//
//  ESCheckVersion.h
//  成都餐饮
//
//  Created by tony on 14-5-5.
//  Copyright (c) 2014年 wang yongfeng. All rights reserved.
//
@class ESCheckVersion;
@protocol ESCheckVersionDelegate <NSObject>

- (void)checkVersion:(ESCheckVersion *)checkVersion State:(BOOL)bVersion;//版本更新处理函数
- (void)checkVersionFailed:(ESCheckVersion *)checkVersion;
@end
#import <Foundation/Foundation.h>

@interface ESCheckVersion : NSObject<NSURLConnectionDelegate,NSURLConnectionDataDelegate>
@property(nonatomic,retain)NSString *trackViewUrl;//应用地址
@property(nonatomic,retain)NSString *trackName;//应用名
@property(nonatomic,assign)id<ESCheckVersionDelegate> delegate;
@property(nonatomic,assign)BOOL bVersion;//是否有更新
- (void)checkAppVersionSynchronous;
- (void)checkAppVersionAsynchronous;
@end

